[GB.PDF]
* NEW: Make 'gb.pdf' compile with poppler >= 26.1.0.
Origin: https://gitlab.com/gambas/gambas/-/commit/
78bf774fa00b07194ba24efa7fa0e989e5271e2a
Gbp-Pq: Name Make-gb.pdf-compile-with-poppler-26.1.0.patch
AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_01_0, $((1-$?)), Poppler version >= 25.01.0)
$PKG_CONFIG --atleast-version=25.12.0 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_25_12_0, $((1-$?)), Poppler version >= 25.12.0)
+ $PKG_CONFIG --atleast-version=26.01.0 poppler
+ AC_DEFINE_UNQUOTED(POPPLER_VERSION_26_01_0, $((1-$?)), Poppler version >= 26.01.0)
fi
AC_CONFIG_FILES([\
THIS->page->display(gfx);
dev->endPage();
- str=dev->getText((double)x,(double)y,(double)(w+x),(double)(h+y));
+#if POPPLER_VERSION_26_01_0
+ str = dev->getText(PDFRectangle((double)x,(double)y,(double)(w+x),(double)(h+y)));
+#else
+ str = dev->getText((double)x,(double)y,(double)(w+x),(double)(h+y));
+#endif
#if !(POPPLER_VERSION_24_12_0)
delete gfx;